interface User {
    name: string
    age: number
}

export function getUser({name, age}: User): string {
    return `name: ${name}, age: ${age}`;
}